package cn.smilefox.service.impl;

import cn.smilefox.dao.RoleDao;
import cn.smilefox.dao.TeacherDao;
import cn.smilefox.domain.Role;
import cn.smilefox.service.RoleService;

import java.util.List;


public class RoleServiceImpl implements RoleService {

    private RoleDao roleDao;

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }

    @Override
    public List<Role> list() {

        List<Role> roleList = roleDao.findall();
        return roleList;
    }

    @Override
    public void save(Role role) {
        roleDao.save(role);
    }


}
